package com.vichat.task.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2017-01-25 15:05:31.508
 */
@Entity
@Table(name = "task_log",catalog = "cfgdb")
public class TaskLog implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "task_log";

    /** */
	public static final String ALIAS_TASK_LOG_ID = "task_log_id";
    /** */
	public static final String ALIAS_CFG_TASK_ID = "cfg_task_id";
    /** */
	public static final String ALIAS_PERCENT = "percent";
    /** */
	public static final String ALIAS_RESULT = "result";
    /** */
	public static final String ALIAS_REMARK = "remark";
    /** */
	public static final String ALIAS_START_TIME = "start_time";
    /** */
	public static final String ALIAS_END_TIME = "end_time";
    /** */
	public static final String ALIAS_STATUS = "status";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "task_log_id", unique = true, nullable = false)
    public Long taskLogId;

 	@Column(name = "cfg_task_id")
    public Long cfgTaskId;

 	@Column(name = "percent")
    public Long percent;

 	@Column(name = "result")
    public String result;

 	@Column(name = "remark")
    public String remark;

 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "start_time")
    public java.util.Date startTime;

 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "end_time")
    public java.util.Date endTime;

 	@Column(name = "status")
    public String status = "NULL";






	public Long getTaskLogId() {
		return this.taskLogId;
	}

	public void setTaskLogId(Long value) {
		this.taskLogId = value;
	}

	public Long getCfgTaskId() {
		return this.cfgTaskId;
	}

	public void setCfgTaskId(Long value) {
		this.cfgTaskId = value;
	}

	public Long getPercent() {
		return this.percent;
	}

	public void setPercent(Long value) {
		this.percent = value;
	}

	public String getResult() {
		return this.result;
	}

	public void setResult(String value) {
		this.result = value;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String value) {
		this.remark = value;
	}

	public java.util.Date getStartTime() {
		return this.startTime;
	}

	public void setStartTime(java.util.Date value) {
		this.startTime = value;
	}

	public java.util.Date getEndTime() {
		return this.endTime;
	}

	public void setEndTime(java.util.Date value) {
		this.endTime = value;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String value) {
		this.status = value;
	}



	public TaskLog() {
	}

	public TaskLog(boolean qryflag) {
	    if(qryflag){
	    		this.taskLogId = null;
				this.cfgTaskId = null;
				this.percent = null;
				this.result = null;
				this.remark = null;
				this.startTime = null;
				this.endTime = null;
				this.status = null;
			    }
	}


	public TaskLog(
	    Long inTaskLogId,
	    Long inCfgTaskId,
	    Long inPercent,
	    String inResult,
	    String inRemark,
	    java.util.Date inStartTime,
	    java.util.Date inEndTime,
		String inStatus
	 ) {
		super();
				this.taskLogId = inTaskLogId;
				this.cfgTaskId = inCfgTaskId;
				this.percent = inPercent;
				this.result = inResult;
				this.remark = inRemark;
				this.startTime = inStartTime;
				this.endTime = inEndTime;
				this.status = inStatus;
			}





}

